\hypertarget{graph__test_8h}{}\section{src/graph\+\_\+algorithms/basic\+\_\+graph/graph\+\_\+representation/graph/graph\+\_\+test.h File Reference}
\label{graph__test_8h}\index{src/graph\+\_\+algorithms/basic\+\_\+graph/graph\+\_\+representation/graph/graph\+\_\+test.\+h@{src/graph\+\_\+algorithms/basic\+\_\+graph/graph\+\_\+representation/graph/graph\+\_\+test.\+h}}
{\ttfamily \#include \char`\"{}src/google\+\_\+test/gtest.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}../graph\+\_\+vertex/vertex.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}graph.\+h\char`\"{}}\\*
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{class_graph_test}{Graph\+Test}
\begin{DoxyCompactList}\small\item\em \hyperlink{class_graph_test}{Graph\+Test}\+:测试类，用于为测试提供基础数据 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
 \hyperlink{namespaceanonymous__namespace_02graph__test_8h_03}{anonymous\+\_\+namespace\{graph\+\_\+test.\+h\}}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{graph__test_8h_a26bd955cb44c452c6e74e2e29b630cd7}{T\+E\+S\+T\+\_\+\+F} (\hyperlink{class_graph_test}{Graph\+Test}, test\+\_\+add\+\_\+vertex)
\begin{DoxyCompactList}\small\item\em graph\+\_\+test\+:Graph \end{DoxyCompactList}\item 
\hyperlink{graph__test_8h_a9611084dd0e7dde18e30311a1f1c0525}{T\+E\+S\+T\+\_\+\+F} (\hyperlink{class_graph_test}{Graph\+Test}, test\+\_\+add\+\_\+vertex\+\_\+with\+\_\+id)
\begin{DoxyCompactList}\small\item\em graph\+\_\+test\+:Graph \end{DoxyCompactList}\item 
\hyperlink{graph__test_8h_a5166743e2230390ac96f5e287b763589}{T\+E\+S\+T\+\_\+\+F} (\hyperlink{class_graph_test}{Graph\+Test}, test\+\_\+modify\+\_\+vertex)
\begin{DoxyCompactList}\small\item\em graph\+\_\+test\+:Graph \end{DoxyCompactList}\item 
\hyperlink{graph__test_8h_af9f41b341d4e5b5b93fe1d0ba371d6c4}{T\+E\+S\+T\+\_\+\+F} (\hyperlink{class_graph_test}{Graph\+Test}, test\+\_\+weight)
\begin{DoxyCompactList}\small\item\em graph\+\_\+test\+:Graph \end{DoxyCompactList}\item 
\hyperlink{graph__test_8h_ae2ffbd20a0a67c03c7bb4cc00df88154}{T\+E\+S\+T\+\_\+\+F} (\hyperlink{class_graph_test}{Graph\+Test}, test\+\_\+has\+\_\+edge)
\begin{DoxyCompactList}\small\item\em graph\+\_\+test\+:Graph \end{DoxyCompactList}\item 
\hyperlink{graph__test_8h_af018dbd6c870fba57fac5e0995db6790}{T\+E\+S\+T\+\_\+\+F} (\hyperlink{class_graph_test}{Graph\+Test}, test\+\_\+add\+\_\+edge)
\begin{DoxyCompactList}\small\item\em graph\+\_\+test\+:Graph \end{DoxyCompactList}\item 
\hyperlink{graph__test_8h_a5a11c06b4be631854ad876ee82280ba0}{T\+E\+S\+T\+\_\+\+F} (\hyperlink{class_graph_test}{Graph\+Test}, test\+\_\+add\+\_\+edges)
\begin{DoxyCompactList}\small\item\em graph\+\_\+test\+:Graph \end{DoxyCompactList}\item 
\hyperlink{graph__test_8h_adcb79e1f23c2e7f6a3dd20abd2db92c2}{T\+E\+S\+T\+\_\+\+F} (\hyperlink{class_graph_test}{Graph\+Test}, test\+\_\+adjust\+\_\+edge)
\begin{DoxyCompactList}\small\item\em graph\+\_\+test\+:Graph \end{DoxyCompactList}\item 
\hyperlink{graph__test_8h_ad1c11dd442ecc55efe66f47431a5d871}{T\+E\+S\+T\+\_\+\+F} (\hyperlink{class_graph_test}{Graph\+Test}, test\+\_\+edge\+\_\+tuples)
\begin{DoxyCompactList}\small\item\em graph\+\_\+test\+:Graph \end{DoxyCompactList}\item 
\hyperlink{graph__test_8h_ae5016dbe2662a83d84a25fea160b3540}{T\+E\+S\+T\+\_\+\+F} (\hyperlink{class_graph_test}{Graph\+Test}, test\+\_\+vertex\+\_\+edge\+\_\+tuples)
\begin{DoxyCompactList}\small\item\em graph\+\_\+test\+:Graph \end{DoxyCompactList}\item 
\hyperlink{graph__test_8h_afc5787e371a4cbb391cfd9a40e7a627e}{T\+E\+S\+T\+\_\+\+F} (\hyperlink{class_graph_test}{Graph\+Test}, test\+\_\+inverse)
\begin{DoxyCompactList}\small\item\em graph\+\_\+test\+:Graph \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
const int \hyperlink{namespaceanonymous__namespace_02graph__test_8h_03_ad767d40dd9cf8d521b2bba3b9bd71061}{anonymous\+\_\+namespace\{graph\+\_\+test.\+h\}\+::\+G\+\_\+\+N} = 10
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\hypertarget{graph__test_8h_a26bd955cb44c452c6e74e2e29b630cd7}{}\index{graph\+\_\+test.\+h@{graph\+\_\+test.\+h}!T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}}
\index{T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}!graph\+\_\+test.\+h@{graph\+\_\+test.\+h}}
\subsubsection[{T\+E\+S\+T\+\_\+\+F(\+Graph\+Test, test\+\_\+add\+\_\+vertex)}]{\setlength{\rightskip}{0pt plus 5cm}T\+E\+S\+T\+\_\+\+F (
\begin{DoxyParamCaption}
\item[{{\bf Graph\+Test}}]{, }
\item[{test\+\_\+add\+\_\+vertex}]{}
\end{DoxyParamCaption}
)}\label{graph__test_8h_a26bd955cb44c452c6e74e2e29b630cd7}


graph\+\_\+test\+:Graph 

测试{\ttfamily add\+\_\+vertex}方法成员。 

Definition at line 70 of file graph\+\_\+test.\+h.

\hypertarget{graph__test_8h_a9611084dd0e7dde18e30311a1f1c0525}{}\index{graph\+\_\+test.\+h@{graph\+\_\+test.\+h}!T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}}
\index{T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}!graph\+\_\+test.\+h@{graph\+\_\+test.\+h}}
\subsubsection[{T\+E\+S\+T\+\_\+\+F(\+Graph\+Test, test\+\_\+add\+\_\+vertex\+\_\+with\+\_\+id)}]{\setlength{\rightskip}{0pt plus 5cm}T\+E\+S\+T\+\_\+\+F (
\begin{DoxyParamCaption}
\item[{{\bf Graph\+Test}}]{, }
\item[{test\+\_\+add\+\_\+vertex\+\_\+with\+\_\+id}]{}
\end{DoxyParamCaption}
)}\label{graph__test_8h_a9611084dd0e7dde18e30311a1f1c0525}


graph\+\_\+test\+:Graph 

测试另一个{\ttfamily add\+\_\+vertex}方法成员，该{\ttfamily add\+\_\+vertex}添加了{\ttfamily id}信息。 

Definition at line 90 of file graph\+\_\+test.\+h.

\hypertarget{graph__test_8h_a5166743e2230390ac96f5e287b763589}{}\index{graph\+\_\+test.\+h@{graph\+\_\+test.\+h}!T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}}
\index{T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}!graph\+\_\+test.\+h@{graph\+\_\+test.\+h}}
\subsubsection[{T\+E\+S\+T\+\_\+\+F(\+Graph\+Test, test\+\_\+modify\+\_\+vertex)}]{\setlength{\rightskip}{0pt plus 5cm}T\+E\+S\+T\+\_\+\+F (
\begin{DoxyParamCaption}
\item[{{\bf Graph\+Test}}]{, }
\item[{test\+\_\+modify\+\_\+vertex}]{}
\end{DoxyParamCaption}
)}\label{graph__test_8h_a5166743e2230390ac96f5e287b763589}


graph\+\_\+test\+:Graph 

测试{\ttfamily modify\+\_\+vertex}方法成员。 

Definition at line 113 of file graph\+\_\+test.\+h.

\hypertarget{graph__test_8h_af9f41b341d4e5b5b93fe1d0ba371d6c4}{}\index{graph\+\_\+test.\+h@{graph\+\_\+test.\+h}!T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}}
\index{T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}!graph\+\_\+test.\+h@{graph\+\_\+test.\+h}}
\subsubsection[{T\+E\+S\+T\+\_\+\+F(\+Graph\+Test, test\+\_\+weight)}]{\setlength{\rightskip}{0pt plus 5cm}T\+E\+S\+T\+\_\+\+F (
\begin{DoxyParamCaption}
\item[{{\bf Graph\+Test}}]{, }
\item[{test\+\_\+weight}]{}
\end{DoxyParamCaption}
)}\label{graph__test_8h_af9f41b341d4e5b5b93fe1d0ba371d6c4}


graph\+\_\+test\+:Graph 

测试{\ttfamily weight}方法成员。 

Definition at line 135 of file graph\+\_\+test.\+h.

\hypertarget{graph__test_8h_ae2ffbd20a0a67c03c7bb4cc00df88154}{}\index{graph\+\_\+test.\+h@{graph\+\_\+test.\+h}!T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}}
\index{T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}!graph\+\_\+test.\+h@{graph\+\_\+test.\+h}}
\subsubsection[{T\+E\+S\+T\+\_\+\+F(\+Graph\+Test, test\+\_\+has\+\_\+edge)}]{\setlength{\rightskip}{0pt plus 5cm}T\+E\+S\+T\+\_\+\+F (
\begin{DoxyParamCaption}
\item[{{\bf Graph\+Test}}]{, }
\item[{test\+\_\+has\+\_\+edge}]{}
\end{DoxyParamCaption}
)}\label{graph__test_8h_ae2ffbd20a0a67c03c7bb4cc00df88154}


graph\+\_\+test\+:Graph 

测试{\ttfamily has\+\_\+edge}方法成员。 

Definition at line 153 of file graph\+\_\+test.\+h.

\hypertarget{graph__test_8h_af018dbd6c870fba57fac5e0995db6790}{}\index{graph\+\_\+test.\+h@{graph\+\_\+test.\+h}!T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}}
\index{T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}!graph\+\_\+test.\+h@{graph\+\_\+test.\+h}}
\subsubsection[{T\+E\+S\+T\+\_\+\+F(\+Graph\+Test, test\+\_\+add\+\_\+edge)}]{\setlength{\rightskip}{0pt plus 5cm}T\+E\+S\+T\+\_\+\+F (
\begin{DoxyParamCaption}
\item[{{\bf Graph\+Test}}]{, }
\item[{test\+\_\+add\+\_\+edge}]{}
\end{DoxyParamCaption}
)}\label{graph__test_8h_af018dbd6c870fba57fac5e0995db6790}


graph\+\_\+test\+:Graph 

测试{\ttfamily add\+\_\+edge}方法成员。 

Definition at line 171 of file graph\+\_\+test.\+h.

\hypertarget{graph__test_8h_a5a11c06b4be631854ad876ee82280ba0}{}\index{graph\+\_\+test.\+h@{graph\+\_\+test.\+h}!T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}}
\index{T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}!graph\+\_\+test.\+h@{graph\+\_\+test.\+h}}
\subsubsection[{T\+E\+S\+T\+\_\+\+F(\+Graph\+Test, test\+\_\+add\+\_\+edges)}]{\setlength{\rightskip}{0pt plus 5cm}T\+E\+S\+T\+\_\+\+F (
\begin{DoxyParamCaption}
\item[{{\bf Graph\+Test}}]{, }
\item[{test\+\_\+add\+\_\+edges}]{}
\end{DoxyParamCaption}
)}\label{graph__test_8h_a5a11c06b4be631854ad876ee82280ba0}


graph\+\_\+test\+:Graph 

测试{\ttfamily add\+\_\+edges}方法成员。 

Definition at line 194 of file graph\+\_\+test.\+h.

\hypertarget{graph__test_8h_adcb79e1f23c2e7f6a3dd20abd2db92c2}{}\index{graph\+\_\+test.\+h@{graph\+\_\+test.\+h}!T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}}
\index{T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}!graph\+\_\+test.\+h@{graph\+\_\+test.\+h}}
\subsubsection[{T\+E\+S\+T\+\_\+\+F(\+Graph\+Test, test\+\_\+adjust\+\_\+edge)}]{\setlength{\rightskip}{0pt plus 5cm}T\+E\+S\+T\+\_\+\+F (
\begin{DoxyParamCaption}
\item[{{\bf Graph\+Test}}]{, }
\item[{test\+\_\+adjust\+\_\+edge}]{}
\end{DoxyParamCaption}
)}\label{graph__test_8h_adcb79e1f23c2e7f6a3dd20abd2db92c2}


graph\+\_\+test\+:Graph 

测试{\ttfamily adjust\+\_\+edge}方法成员。 

Definition at line 212 of file graph\+\_\+test.\+h.

\hypertarget{graph__test_8h_ad1c11dd442ecc55efe66f47431a5d871}{}\index{graph\+\_\+test.\+h@{graph\+\_\+test.\+h}!T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}}
\index{T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}!graph\+\_\+test.\+h@{graph\+\_\+test.\+h}}
\subsubsection[{T\+E\+S\+T\+\_\+\+F(\+Graph\+Test, test\+\_\+edge\+\_\+tuples)}]{\setlength{\rightskip}{0pt plus 5cm}T\+E\+S\+T\+\_\+\+F (
\begin{DoxyParamCaption}
\item[{{\bf Graph\+Test}}]{, }
\item[{test\+\_\+edge\+\_\+tuples}]{}
\end{DoxyParamCaption}
)}\label{graph__test_8h_ad1c11dd442ecc55efe66f47431a5d871}


graph\+\_\+test\+:Graph 

测试{\ttfamily edge\+\_\+tuples}方法成员。 

Definition at line 234 of file graph\+\_\+test.\+h.

\hypertarget{graph__test_8h_ae5016dbe2662a83d84a25fea160b3540}{}\index{graph\+\_\+test.\+h@{graph\+\_\+test.\+h}!T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}}
\index{T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}!graph\+\_\+test.\+h@{graph\+\_\+test.\+h}}
\subsubsection[{T\+E\+S\+T\+\_\+\+F(\+Graph\+Test, test\+\_\+vertex\+\_\+edge\+\_\+tuples)}]{\setlength{\rightskip}{0pt plus 5cm}T\+E\+S\+T\+\_\+\+F (
\begin{DoxyParamCaption}
\item[{{\bf Graph\+Test}}]{, }
\item[{test\+\_\+vertex\+\_\+edge\+\_\+tuples}]{}
\end{DoxyParamCaption}
)}\label{graph__test_8h_ae5016dbe2662a83d84a25fea160b3540}


graph\+\_\+test\+:Graph 

测试{\ttfamily vertex\+\_\+edge\+\_\+tuples}方法成员。 

Definition at line 250 of file graph\+\_\+test.\+h.

\hypertarget{graph__test_8h_afc5787e371a4cbb391cfd9a40e7a627e}{}\index{graph\+\_\+test.\+h@{graph\+\_\+test.\+h}!T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}}
\index{T\+E\+S\+T\+\_\+\+F@{T\+E\+S\+T\+\_\+\+F}!graph\+\_\+test.\+h@{graph\+\_\+test.\+h}}
\subsubsection[{T\+E\+S\+T\+\_\+\+F(\+Graph\+Test, test\+\_\+inverse)}]{\setlength{\rightskip}{0pt plus 5cm}T\+E\+S\+T\+\_\+\+F (
\begin{DoxyParamCaption}
\item[{{\bf Graph\+Test}}]{, }
\item[{test\+\_\+inverse}]{}
\end{DoxyParamCaption}
)}\label{graph__test_8h_afc5787e371a4cbb391cfd9a40e7a627e}


graph\+\_\+test\+:Graph 

测试{\ttfamily inverse}方法成员。 

Definition at line 271 of file graph\+\_\+test.\+h.

